//
//  MoreCell.m
//  项目1 CLCMovie
//
//  Created by huiwenjiaoyu on 15/7/17.
//  Copyright (c) 2015年 CLC. All rights reserved.
//

#import "MoreCell.h"
#define kWidth  self.view.bounds.size.width
#define kHieght self.view.bounds.size.height


@implementation MoreCell


- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self) {
        [self _creatSubView];
        
        
    }
    return self;
}


- (void)_creatSubView
{
    _imgView = [[UIImageView alloc] initWithFrame:CGRectZero];
    [_imgView setImage:[UIImage imageNamed:[_Modal imgName]]];
    
    
    
    _label = [[UILabel alloc] initWithFrame:CGRectZero];
    _label.text = [_Modal titleName];
    _label.textColor = [UIColor whiteColor];
    _label.font = [UIFont systemFontOfSize:22];
    _label.textAlignment = NSTextAlignmentLeft;
    
}


- (void)layoutSubviews
{
    _imgView.frame = CGRectMake(20, (CGRectGetHeight(self.frame) - 40)/2, 40, 40);
    
    _label.frame = CGRectMake( 60, (CGRectGetHeight(self.frame) - 40)/2, 200, 40);

}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
